package com.example.fragmenttest;

import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class RightFragment extends Fragment {
    public static final String TAG="RightFragment";
    public void onAttach(Context context){
        super.onAttach(context);
        Log.d(TAG,"onAttach");
    }
    public void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        Log.d(TAG,"onCreate");
    }
    @Override
    public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.right_fragment,container,false);
        return view;
    }
    public void onStart(){
        super.onStart();
        Log.d(TAG,"onStart");
    }
    public void onResume(){
        super.onResume();
        Log.d(TAG,"onResume");
    }
    public void onPause(){
        super.onPause();
        Log.d(TAG,"onPause");
    }
    public void onStop(){
        super.onStop();
        Log.d(TAG,"onStop");
    }
    public void onDestoryView(){
        super.onDestroyView();
        Log.d(TAG,"onDestoryView");
    }
    public void onDestory(){
        super.onDestroy();
        Log.d(TAG,"onDestory");
    }
    public void onDetach(){
        super.onDetach();
        Log.d(TAG,"onDetach");
    }
}
